import {Injectable} from '@angular/core';
import {BehaviorSubject, Observable, Subject} from "rxjs";

@Injectable({
  providedIn: 'root'
})
export class IdentifyIdService {
  private IdentifyIdStore = new BehaviorSubject<number>(-1);

  constructor() {
  }

  setIdentifyIdStore(componentName: number): void {
    this.IdentifyIdStore.next(componentName);
  }

  getIdentifyIdStore(): Observable<number> {
    return this.IdentifyIdStore.asObservable();
  }
}
